Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#19 create results layout #22

Merged
merged 6 commits into from
Feb 1, 2021
Merged

Conversation

NabokinAlexandr
Copy link
Contributor

No description provided.


public onValChange(val: string) {
this.selectedVal = val;
this.store.dispatch(new EditResultView(val));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name is not clear. Let use set prefix for setting values. e g SetCurrentView

public selectedVal: string;

constructor(private store: Store) {
this.data$ = this.store.select(state => state.ShowData);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not obvious what are you going to reach by selecting observable in one component and passing to another. Let's discuss tomorrow

export class EditResultView {
static readonly type = '[Result] EditView';
constructor(public payload: string) {}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion to use the empty line at the end of each file for avoiding conflicts when somebody adds code to the file

@@ -0,0 +1,14 @@
<mat-button-toggle-group #group="matButtonToggleGroup" [value]="currentView" (change)="SetCurrentView(group.value)">
<mat-button-toggle value="show-data" aria-label="show-data">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aria-label must be meaningful

@NabokinAlexandr NabokinAlexandr merged commit 06b227f into develop Feb 1, 2021
@NabokinAlexandr NabokinAlexandr deleted the #19_create_results_layout branch February 1, 2021 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants